﻿using System;
using System.Collections.Generic;
using System.Data;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSunny.Controls
{
    public partial class ThietKeWebsite1 : System.Web.UI.UserControl
    {
        public int idbox;
        public string link;
        public string name;
        public string image;
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = DAL.DCollector.DBCollector.Instance.StoredSelectTableWhereID("tbl_Category", "Category_ID1", idbox.ToString());
            name = dt.Rows[0]["Category_Name"].ToString();
            link = dt.Rows[0]["Category_Link"].ToString();

            image = dt.Rows[0]["Category_Image"].ToString();
            rpt_sunny.DataSource = DAL.DCollector.DBCollector.Instance.StoredSelectTableWhereID("tbl_Category", "Category_ID2", idbox.ToString());
            rpt_sunny.DataBind();

        }
    }
}